-- GENERATED SPELL FOR [Azure Manabeast] --


function spell0_31404(pUnit, Event) --@Mana Bite,n/a--
pUnit:FullCastSpellOnTarget(59105,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_31404', 12319, 1)
end

function Sorts_31404(pUnit, Event)
local choix_sorts_31404 = math.random(0, 0)
if choix_sorts_31404 == 0 then
pUnit:RegisterEvent('spell0_31404', 1, 1)
end
end

function mob31404_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_31404', math.random(1500, 3000), 1)
end

function mob31404_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31404_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob31404_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(31404, 1, 'mob31404_Action')
RegisterUnitEvent(31404, 2, 'mob31404_Leave')
RegisterUnitEvent(31404, 3, 'mob31404_Kill')
RegisterUnitEvent(31404, 4, 'mob31404_Die')
